﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
    {
        
       string MID = GridView1.SelectedDataKey[0].ToString();
       // Response.Write(MID);
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
       // string MID = GridView1.SelectedDataKey[GridView1.SelectedIndex].ToString();
        GridView1.DeleteRow(GridView1.SelectedIndex);
    }
    protected void Button2_Click(object sender, EventArgs e)
    {
        txb.ReadOnly = false;
    }
    TextBox txb;
    protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        txb = (TextBox)GridView1.Rows[0].FindControl("LbHuifuLiuyan");
        
    }
}